package com.service.intf;

import com.entity.Draft;

import java.util.List;

public interface DraftService {

    //保存草稿
    public void saveDraft (Integer userId, String draft);

    //发布草稿
    public void releaseDraft(Integer draftId);
    //查看某一篇草稿
    public Draft querySingleDraftByDraftId  (Integer draftId);

    //查询所有草稿
    public List<Draft> queryDraftByUserId (Integer userId);
}
